Skip to content

Fix CodeQL "Analyze (c-cpp)": suppress upload conflicting with default setup - #210

Merged
clauspruefer merged 1 commit into
mainfrom
copilot/fix-analyze-c-cpp-job-one-more-time
Aug 7, 2026
Merged

Fix CodeQL "Analyze (c-cpp)": suppress upload conflicting with default setup#210
clauspruefer merged 1 commit into
mainfrom
copilot/fix-analyze-c-cpp-job-one-more-time

Conversation

Copilot AI commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

The custom CodeQL workflow was failing because the repo has GitHub's default CodeQL setup enabled — GitHub rejects SARIF uploads from advanced (custom) configurations when default setup is active.

Change

  • Added upload: never to the analyze step in .github/workflows/codeql.yml
- name: Perform CodeQL Analysis
  uses: github/codeql-action/analyze@v3
  with:
    category: "/language:c-cpp"
    upload: never   # ← added; avoids conflict with repo's default CodeQL setup

CodeQL analysis still runs fully; only the conflicting SARIF upload is suppressed.

… setup

Co-authored-by: clauspruefer <17313789+clauspruefer@users.noreply.github.com>
Copilot AI changed the title Fix CodeQL "Analyze (c-cpp)" job: add upload: never to prevent default-setup conflict Fix CodeQL "Analyze (c-cpp)": suppress upload conflicting with default setup Aug 7, 2026
Copilot AI requested a review from clauspruefer August 7, 2026 07:13
@clauspruefer
clauspruefer marked this pull request as ready for review August 7, 2026 07:29
Copilot AI lite review requested due to automatic review settings August 7, 2026 07:29
@clauspruefer
clauspruefer merged commit fce8af4 into main Aug 7, 2026
6 of 7 checks passed

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes a failure in the repository’s custom CodeQL workflow caused by GitHub’s default CodeQL setup being enabled, which rejects SARIF uploads from advanced/custom workflows. The workflow will still run CodeQL analysis, but will no longer attempt the conflicting upload.

Changes:

  • Disable SARIF upload in the custom CodeQL workflow by setting upload: never on the github/codeql-action/analyze@v3 step.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

uses: github/codeql-action/analyze@v3
with:
category: "/language:c-cpp"
upload: never
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants